Release 10.1A: OpenEdge Development:
Progress 4GL Reference
NODE-VALUE-TO-LONGCHAR( ) method
Copies the contents of an XML X-noderef node to a LONGCHAR, and optionally converts the contents to a specific code page.
Return type: LOGICAL Applies to: X-noderef object handle
longcharAn expression of type LONGCHAR.
codepageA character-string expression that evaluates to the name of a code page. The name you specify must be a valid code page name available in the
DLC/convmap.cpfile. If you do not specifycodepageand the code page oflongcharis fixed (that is, set using the FIX-CODEPAGE function), Progress convertslongcharto the fixed code page. If you do not specifycodepageand the code page oflongcharis not fixed, Progress convertslongcharto the code page specified by-cpinternal. If you specifycodepageand the code page oflongcharis fixed, they must agree. Otherwise, Progress raises a run-time error.NODE-VALUE-TO-LONGCHAR( ) frees the memory currently allocated by
longchar(if any), allocates sufficient memory to the LONGCHAR to accommodate the node, and copies the node to the LONGCHAR.If X-NODEREF:NODE-VALUE is the empty string (""), the resulting
longcharhas a size of zero length.For more information on accessing XML documents using the Document Object Model (DOM) interface, see OpenEdge Development: Programming Interfaces .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |